-- GENERATED SPELL FOR [Feralfen Hunter] --


function spell0_18113(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18113', 5264, 1)
end

function spell1_18113(pUnit, Event) --@Serpent Sting,n/a--
pUnit:FullCastSpellOnTarget(31975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18113', 15000, 1)
end

function spell2_18113(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18113', 628, 1)
end

function spell3_18113(pUnit, Event) --@Summon Sporebat,Self--
pUnit:FullCastSpellOnTarget(32060,pUnit)
pUnit:RegisterEvent('Sorts_18113', 564, 1)
end

function Sorts_18113(pUnit, Event)
local choix_sorts_18113 = math.random(0, 3)
if choix_sorts_18113 == 0 then
pUnit:RegisterEvent('spell0_18113', 1, 1)
end
if choix_sorts_18113 == 1 then
pUnit:RegisterEvent('spell1_18113', 1, 1)
end
if choix_sorts_18113 == 2 then
pUnit:RegisterEvent('spell2_18113', 1, 1)
end
if choix_sorts_18113 == 3 then
pUnit:RegisterEvent('spell3_18113', 1, 1)
end
end

function mob18113_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18113', math.random(1500, 3000), 1)
end

function mob18113_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18113_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18113_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18113, 1, 'mob18113_Action')
RegisterUnitEvent(18113, 2, 'mob18113_Leave')
RegisterUnitEvent(18113, 3, 'mob18113_Kill')
RegisterUnitEvent(18113, 4, 'mob18113_Die')
